package com.rpj.entity;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

@Entity
@Table(name = "users")
@JsonIgnoreProperties(value = {"hibernateLazyInitializer","handler"})
public class UserEntity {
	@Id
	private String username;
	private String userpassword;
	private String data1;//状态，0学生，1老师，2管理员
	private String data2;
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getUserpassword() {
		return userpassword;
	}
	public void setUserpassword(String userpassword) {
		this.userpassword = userpassword;
	}
	public String getData1() {
		return data1;
	}
	public void setData1(String data1) {
		this.data1 = data1;
	}
	public UserEntity(String username, String userpassword, String data1) {
		super();
		this.username = username;
		this.userpassword = userpassword;
		this.data1 = data1;
	}
	public UserEntity() {
		super();
		// TODO Auto-generated constructor stub
	}
	@Override
	public String toString() {
		return "UserEntity [username=" + username + ", userpassword=" + userpassword + ", data1=" + data1 + "]";
	}
	
}
